package com.pan.structual.decorator.decorator.impl;

import com.pan.structual.decorator.frame.MyFrame;
import com.pan.structual.decorator.decorator.MyFrameDecorator;

import javax.swing.border.LineBorder;
import java.awt.*;

public class RedBorderFrameDecorator extends MyFrameDecorator {
    public RedBorderFrameDecorator(MyFrame frame) {
        super(frame);
    }


    @Override
    public void disposition() {
        super.disposition();
        getFrame().getRootPane().setBorder(new LineBorder(Color.RED,10));
    }

}
